import { TreeBO } from 'pages/tree/model/TreeBO';

export class TreeObj {
  id: string
  label: string
  disabled: boolean
  children: TreeObj[] = []
  constructor(trees: TreeBO,disable: boolean) {
    this.disabled = disable
    const current = trees.current;
    this.id = current.relationNode.id
    this.label = current.info
    const childs = trees.childs;
    childs.forEach(x => {
      this.children.push(new TreeObj(x,disable))
    })
  }
}



